<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib prefix="map" uri="/map" %>  

<script type="text/javascript">
$(function(){
	
	$("#itemRightCol").attr("colspan",function(){
	
		return parseInt(($("#itemRightCol").closest("form").attr("col")));
	}());
})
</script>
<c:if test="${map:isNotEmpty(module_rights) }">
	<tr>
		<td id="itemRightCol" colspan="4">
			<c:if test="${map:has(module_rights,'B-G-E') }">
				<a class="core-button" icon="icon-add" id="add" onclick="app.module.add($(this))">添加</a>
				<a class="core-button" icon="icon-edit" id="edit" style="display: none;" onclick="app.module.edit($(this))">编辑</a>
				<a class="core-button" icon="icon-del" id="del" style="display: none;" onclick="app.module.del($(this))">删除</a>
				<a class="core-button form-button" style="display: none;" icon="icon-save" id="save" onclick="app.module.save($(this))">保存</a>
				<a class="core-button form-button" style="display: none;" icon="icon-cancel" id="cancel" onclick="app.module.cancel($(this))">撤销</a>
			</c:if>
			<c:if test="${map:has(module_rights,'B-G-L') }">
				<a class="core-button" icon="icon-lock" id="lock" style="display: none;"  onclick="app.module.lock($(this))">加锁</a>
				<a class="core-button" icon="icon-unlock" id="unlock" style="display: none;"  onclick="app.module.unlock($(this))">解锁</a>
			</c:if>
		</td>
	</tr>
</c:if>